package com.superquan.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

/**
 * @program: cloud2022
 * @description: hystrix-主启动类
 * @author: superquan
 * @create: 2022-06-01 09:34
 **/
@SpringBootApplication
@EnableEurekaClient
@EnableCircuitBreaker//SpringCloud使用断路器，需要加上此注解
public class PaymentHystrixMain8001 {
    public static void main(String[] args) {
        SpringApplication.run(PaymentHystrixMain8001.class,args);
    }
}
